package cn.openea.perpartner.componet.web.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * (Attachment)表实体类
 *
 * @author Weird077
 * @since 2023-02-03 12:17:55
 */
@Data
@TableName("component_attachment")
public class Attachment implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private String fileId;
    @ApiModelProperty(value = "创建者id")
    private String userId;
    @ApiModelProperty(value = "创建者昵称")
    private String nickName;
    @ApiModelProperty(value = "文件名称")
    private String fileName;
    @ApiModelProperty(value = "新文件名称")
    private String newFileName;

    @ApiModelProperty(value = "类型。0:图片；1:文件")
    private String type;
    @ApiModelProperty(value = "文件路径")
    private String url;
    @ApiModelProperty(value = "存储桶")
    private String bucket;
    @ApiModelProperty(value = "存储桶所在地域")
    private String region;
    @ApiModelProperty(value = "文件后缀")
    private String suffix;
    @ApiModelProperty(value = "排序号")
    private String sort;
    @ApiModelProperty(value = "状态。0:停用；1:启用")
    private String status;
    @ApiModelProperty(value = "来源文档id")
    private String sourceId;
    @ApiModelProperty(value = "场景id")
    private String sceneId;
    @ApiModelProperty(value = "缩略图访问路径")
    private String thumbUrl;
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;


}

